"""make diary.title nullable

Revision ID: 202510190002
Revises: 202510190001
Create Date: 2025-10-19
"""

from __future__ import annotations

from alembic import op
import sqlalchemy as sa


revision = '202510190002'
down_revision = '202510190001'
branch_labels = None
depends_on = None


def upgrade() -> None:
    op.alter_column('diary_entries', 'title', existing_type=sa.String(length=180), nullable=True)


def downgrade() -> None:
    op.alter_column('diary_entries', 'title', existing_type=sa.String(length=180), nullable=False)

